<link rel="stylesheet" href="xtec-resource/css/public/Machine/machine.css"/>
<script type="text/javascript" src="xtec-resource/js/pagination.js"></script>
<script type="text/javascript" src="xtec-resource/js/Machine/machine.js"></script>
<div id="machineVue" class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title  am-cf" v-html="formatterLang('机器信息')"></div>
                </div>
                <div class="widget-body  widget-body-lg am-fr">
                    <!-- 添加-->
                    <div class="am-u-sm-12 am-u-md-10 am-u-lg-10">
                        <div class="am-form-group">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                    <button type="button" class="am-btn am-btn-default am-btn-success" @click="refresh">
                                        <span class="am-icon-refresh"></span><span v-html="formatterLang('刷新')"></span></button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 查询-->
                    <div class="am-u-sm-12 am-u-md-2 am-u-lg-2">
                        <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                            <input type="text" class="am-form-field" :placeholder="formatterLang('请输入机器名')" v-model="searchText">
                            <span class="am-input-group-btn">
            <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="button" @click="searchUser"></button>
          </span>
                        </div>
                    </div>

                    <table class="am-table am-table-compact am-table-bordered tpl-table-black">
                        <thead>
                        <tr>
                            <th v-html="formatterLang('序号')"></th>
                            <th v-html="formatterLang('机器名称')"></th>
                            <th v-html="formatterLang('类型')"></th>
                            <th v-html="formatterLang('IP')"></th>
                            <th v-html="formatterLang('采集器')"></th>
                            <th v-html="formatterLang('行')"></th>
                            <th v-html="formatterLang('列')"></th>
                            <th v-html="formatterLang('轴数')"></th>
                            <th v-html="formatterLang('创建时间')"></th>
                            <th v-html="formatterLang('存储地址')"></th>
                            <th v-html="formatterLang('注释')"></th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="(item,index) of dataTable">
                           <td>{{index+1}}</td>
                            <td>{{item.name}}</td>
                            <td>{{item.type_id}}</td>
                            <td>{{item.dest}}</td>
                            <td>{{item.collector_id}}</td>
                            <td>{{item.x}}</td>
                            <td>{{item.y}}</td>
                            <td>{{item.create_time}}</td>
                            <td>{{item.prg_path}}</td>
                            <td>{{item.features}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
<div>
    <div class="am-u-lg-3 am-u-lg-offset-1 am-cf">
        <select id="userSelect" data-am-selected>
            <option :value=value+1 v-for="(item,value) in select">{{item}}</option>
        </select>
    </div>
    <div class="am-u-lg-8 am-cf">
        <div class="am-fr" style="margin-right: 10px">
            <ul class="am-pagination tpl-pagination" id="pagination">

            </ul>
        </div>
    </div>
</div>
    </div>
</div>